﻿#region

using CookComputing.XmlRpc;

#endregion

namespace SubsDownloader.Core.Providers
{
    public interface IOsDb : IXmlRpcProxy
    {
        [XmlRpcMethod( "ServerInfo" )]
        XmlRpcStruct ServerInfo();

        [XmlRpcMethod( "LogIn" )]
        XmlRpcStruct LogIn( string username, string password, string language, string useragent );

        [XmlRpcMethod( "LogOut" )]
        XmlRpcStruct LogOut( string token );

        [XmlRpcMethod( "SearchSubtitles" )]
        Subrt SearchSubtitles( string token, SubInfo[] subs );

        [XmlRpcMethod( "DownloadSubtitles" )]
        Subdata DownloadSubtitles( string token, string[] subs );

        [XmlRpcMethod( "GetIMDBMovieDetails" )]
        Imdbheader GetIMDBMovieDetails( string token, string imdbid );
    }
}